package com.zmn.brs.common.exception;

import com.zmn.common.exception.ErrorCode;
import com.zmn.common.exception.ZmnException;

/**
 * @author quanjic
 * @version v1.0
 * @since 2020/9/24 9:39
 **/
public class BrsException extends RuntimeException {

    public BrsException() {
    }

    /**
     * 错误码
     */
    private Integer errorCode;

    public BrsException(String message) {
        super(message);
    }

    public BrsException(String message, Throwable cause) {
        super(message, cause);
    }

    public BrsException(Throwable cause) {
        super(cause);
    }

    public BrsException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public BrsException(Integer errorCode) {
        super(errorCode + "");
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

}
